﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using java.text;
using java.util;

namespace Game.utils
{
    public class TimeUtils
{
	/**
	 * Field SIMPLE_FORMAT.
	 */
	private static SimpleDateFormat SIMPLE_FORMAT = new SimpleDateFormat("HH:mm dd.MM.yyyy");
	
	/**
	 * Method toSimpleFormat.
	 * @param cal Calendar
	 * @return String
	 */
	public static String toSimpleFormat(Calendar cal)
	{
		return SIMPLE_FORMAT.format(cal.getTime());
	}
	
	/**
	 * Method toSimpleFormat.
	 * @param cal long
	 * @return String
	 */
	public static String toSimpleFormat(long cal)
	{
		return SIMPLE_FORMAT.format(cal);
	}
}
}
